

/** * @(#)Blog.java, 2018年2月4日. * * Copyright 2018 Netease, Inc. All rights reserved. * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
 package com.zswlib.netease.webapp.po;

import java.util.Set;

import org.apache.ibatis.type.Alias;

/** * * @author GZzhongshaowei 2018年2月4日 * *  */
@Alias("Blog")
 public class Blog {
    private Integer id;
    private String title;
    private Author author;
    private Set<Post> posts;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Author getAuthor() {
        return author;
    }

    public void setAuthor(Author author) {
        this.author = author;
    }

    public Set<Post> getPosts() {
        return posts;
    }

    public void setPosts(Set<Post> posts) {
        this.posts = posts;
    }

    @Override
    public String toString() {
        return "Blog [id=" + id + ","
                + "\r\n      title=" + title + ","
                + "\r\n      author=" + author + ","
                + "\r\n      posts=" + posts + "]";
    }


}

